Skip to content

Removed import instructions of deprecated numpy functions - cast, product#90

Merged
mrakitin merged 2 commits intomainfrom
smallchanges
Mar 10, 2026
Merged

Removed import instructions of deprecated numpy functions - cast, product#90
mrakitin merged 2 commits intomainfrom
smallchanges

Conversation

@afluerasu
Copy link
Contributor

@afluerasu afluerasu commented Feb 2, 2026

cast and product are not any longer supperted in numpy 2.3.5 ('current' kernel) . Luckily, they were not used in the pyCHX code as dicovered by @jmaruland

Also, added a simple import test. I think it's hard time we start testing more than 1+1=2 with future releases. This is just a first small step.

Copy link
Contributor

@mrakitin mrakitin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Per https://github.com/numpy/numpy/pull/10653/changes, we'll use np.prod which was used in that implementation of np.product.

@mrakitin mrakitin closed this Mar 10, 2026
@mrakitin mrakitin reopened this Mar 10, 2026
@mrakitin
Copy link
Contributor

We'll need to update the CI to pass, but we can do it after the move to the NSLS2 org.

@mrakitin mrakitin merged commit 9a5d5d3 into main Mar 10, 2026
0 of 18 checks passed
@mrakitin mrakitin deleted the smallchanges branch March 10, 2026 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants